C program to find number of digits in an integer